package com.zxm.sunshineaiary.view.flinggallery.info;

import android.util.Log;
import android.view.View;

public class FingGalleryInfo {

	private static FingGalleryInfo instance = null;

	public static int child_view_high = 100;
	public static int child_view_wide = 100;
	public static int child_view_pandding = 0;

	private View mView = null;

	private boolean isClick = true;
	private int mViewTop, mViewBottem, mViewLeft;
	private int viewCenter = 0;// ����������
	private int childCenter = 5;// ��Ҫ�����������View����
	private int mPosation = childCenter;// ��Ҫ���ԣ��������е�Item
	public int TopMargin = 0;// ��Ҫ���ԣ�View���ռ䶥�˵ľ���
	public int TemporaryTopMargin = 0;

	public static FingGalleryInfo getFGInfoInstance(View view) {
		if (null == instance) {
			instance = new FingGalleryInfo(view);
		}
		return instance;
	}

	
	
	public View getmView() {
		return mView;
	}

	public void setmView(View mView) {
		this.mView = mView;
	}

	public int getmPosation() {
		return mPosation;
	}

	public void setmPosation(int mPosation) {
		this.mPosation = mPosation;
	}

	public void setmViewTop(int mViewTop) {
		this.mViewTop = mViewTop;
	}

	public void setmViewBottem(int mViewBottem) {
		this.mViewBottem = mViewBottem;
	}

	public void setmViewLeft(int mViewLeft) {
		this.mViewLeft = mViewLeft;
	}

	private FingGalleryInfo(View view) {
		this.mView = view;

	}

	public boolean isClick() {
		return isClick;
	}

	public void setClick(boolean isClick) {
		this.isClick = isClick;
	}

	public int getTopMargin() {
		return TopMargin;
	}

	public void setTopMargin(int topMargin) {
		TopMargin = topMargin;
	}

	/**
	 * ��ʼ��Posation�����б?��ʱ���ó�ʼ����ʹ��������¼�
	 */
	public void changePosation() {
		this.mPosation = 999;
	}

	public void setPosation(int posation) {
		this.mPosation = posation;
	}

	public int getPosation() {
		return mPosation;
	}

	public int getViewCenter() {
		return viewCenter;
	}

	public void setViewCenter(int viewCenter) {
		this.viewCenter = viewCenter;
	}

	public int getChildCenter() {
		return childCenter;
	}

	public void setChildCenter(int childCenter) {
		this.childCenter = childCenter;
		this.mPosation = childCenter;
	}

	
	public int getmViewTop() {
		return mViewTop;
	}

	public int getmViewBottem() {
		return mViewBottem;
	}

	public int getmViewLeft() {
		return mViewLeft;
	}

	/**
	 * 因为是static，所以使用前要初始化
	 */
	public static void initialization() {
		instance = null;
	}

}
